﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using BCCommon.TradingEnums;

namespace BCEntity.Trading.SaleContract
{
    /// <summary>
    /// 销售合同
    /// </summary>
    public class SaleContractEntity
    {

        /// <summary>
        /// 销售合同Id
        /// </summary>		
        public long SaleContractId { get; set; }
        /// <summary>
        /// 销售合同编号
        /// </summary>		
        public string SaleContractNo { get; set; }
        /// <summary>
        /// 合同内容
        /// </summary>		
        public string ContractContent { get; set; }
        /// <summary>
        /// 销售金额
        /// </summary>		
        public decimal SaleAmount { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>		
        public long? UserId { get; set; }
        /// <summary>
        /// 收货人
        /// </summary>		
        public string Consignee { get; set; }
        /// <summary>
        /// 收货人手机号
        /// </summary>		
        public string ConsigneePhone { get; set; }
        /// <summary>
        /// 收货人地址
        /// </summary>		
        public string ShippingAddress { get; set; }
        /// <summary>
        /// 销售合同状态
        /// </summary>
        public SaleContractStatusType SaleContractStatus { get; set; }
        /// <summary>
        /// 销售合同状态
        /// </summary>
        public string SaleContractStatusStr { get; set; }
        /// <summary>
        /// 交付日期
        /// </summary>		
        public DateTime? DeliveryDate { get; set; }
        /// <summary>
        /// 交付方式
        /// </summary>		
        public string DeliveryMode { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>		
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>		
        public SaleContractPaymentModeType PaymentMode { get; set; }
        /// <summary>
        /// 已支付定金
        /// </summary>		
        public bool HasDepositPaid { get; set; }
        /// <summary>
        /// 已支付尾款
        /// </summary>		
        public bool HasLastPaid { get; set; }
        /// <summary>
        /// 定金支付编号
        /// </summary>		
        public string DepositPaymentNo { get; set; }
        /// <summary>
        /// 尾款支付编号
        /// </summary>		
        public string LastPaymentNo { get; set; }
        /// <summary>
        /// 全款支付编号
        /// </summary>		
        public string FullPaymentNo { get; set; }
        /// <summary>
        /// 完成合同时间
        /// </summary>		
        public DateTime? DoneContractTime { get; set; }
        /// <summary>
        /// 完成合同备注
        /// </summary>		
        public string DoneContractRemark { get; set; }
        /// <summary>
        /// 解除合同时间
        /// </summary>		
        public DateTime? CloseContractTime { get; set; }
        /// <summary>
        /// 解除合同备注
        /// </summary>		
        public string CloseContractRemark { get; set; }
        /// <summary>
        /// 取消合同时间
        /// </summary>		
        public DateTime? CancelContractTime { get; set; }
        /// <summary>
        /// 取消合同备注
        /// </summary>		
        public string CancelContractRemark { get; set; }

    }
}

